package com.kaifamiao;

public class FlipArray {

	public static void main(String[] args) {
		
		final char[][] chunxiao = {
		        {'春', '眠', '不', '觉', '晓'},
		        {'处', '处', '闻', '啼', '鸟'},
		        {'夜', '来', '风', '雨', '声'},
		        {'花', '落', '知', '多', '少'}
		};
		
		for( int i = 0 ; i < chunxiao.length ; i++ ) {
			// 从大数组中取得下标为i的元素(它是个小数组)
			char[] xiaoshuzu = chunxiao[ i ];
			for( int j = 0 ; j < xiaoshuzu.length ; j++ ) {
				// 从小数组中获取下标为j的元素
				char ch = xiaoshuzu[ j ];
				System.out.print( ch + "\t" );
			}
			System.out.println();
		}
		
		for( int i = 0 ; i < 5 ; i++ ) {
			for( int j = 3 ; j >= 0 ; j-- ) {
				char ch = chunxiao[ j ][ i ];
				System.out.print( ch + "\t" );
			}
			System.out.println();
		}
		
	}

}
